<%= form_for([:admin, @system_message]) do |f| %>
  <% if @system_message.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@system_message.errors.count, "error") %> prohibited this admin_system_message from being saved:</h2>

      <ul>
      <% @system_message.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="group">
    <label class="label title">タイトル：</label>
    <br />
    <%= f.text_field :title %>
  </div>

  <br />

  <div class="group">
    <label class="label body">本文：</label>
    <br />
    <%= f.text_area :body %>
  </div>

  <br />

  <div class="group">
    <label class="label viewing_limit">掲載期限：</label>
    <br />
    <%= f.datetime_select :viewing_limit %>
  </div>

  <br />

  <div class="actions">
    <%= f.submit :confirm => "よろしいですか？" %>
  </div>

  <br />

<% end %>
